package com.autumn.zero.workflow.application.dto.definitions;

import java.util.Date;

import com.autumn.common.api.domain.entities.auditing.IGmtCreate;
import com.autumn.common.api.domain.entities.auditing.IGmtModified;
import com.autumn.zero.workflow.constants.ProcessDesignStatusConstants;

/**
 * 工作流定义输出
 * 
 * @author 杨昌国 2019-01-11 13:48:56
 */
public class WorkflowDefinitionOutput extends WorkflowDefinitionDto implements IGmtCreate, IGmtModified {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6392086805798851937L;

	private String processId;
	private String processContent;
	private Integer status;
	private Date gmtCreate;
	private Date gmtModified;

	public String getProcessId() {
		return processId;
	}

	public void setProcessId(String processId) {
		this.processId = processId;
	}

	public String getProcessContent() {
		return processContent;
	}

	public void setProcessContent(String processContent) {
		this.processContent = processContent;
	}
	
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * 获取状态名称
	 * 
	 * @return
	 */
	public String getStatusName() {
		return ProcessDesignStatusConstants.getName(this.getStatus());
	}

	@Override
	public Date getGmtCreate() {
		return gmtCreate;
	}

	@Override
	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	@Override
	public Date getGmtModified() {
		return gmtModified;
	}

	@Override
	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}
}
